package cn.edu.xjtu.nbrash.xbarsuite.presms;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.database.sqlite.SQLiteDatabase.CursorFactory;

/**
 * SqlHelper.java
 *
 * @author Jingkai Tang jingkaitang@gmail.com
 * @version 0.0.1 Nov 21, 2014 12:42:28 PM
 *
 */
public class SqlHelper extends SQLiteOpenHelper {

	public SqlHelper(Context context, String name, CursorFactory factory,
			int version) {
		// version = 1
		super(context, name, factory, version);
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		db.execSQL(PreSMS.SQL_CREATE_TABLE);
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		// DO NOTHING
	}
}